package org.tempuri;

public class TransactionQuerySoapProxy implements org.tempuri.TransactionQuerySoap {
  private String _endpoint = null;
  private org.tempuri.TransactionQuerySoap transactionQuerySoap = null;
  
  public TransactionQuerySoapProxy() {
    _initTransactionQuerySoapProxy();
  }
  
  public TransactionQuerySoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initTransactionQuerySoapProxy();
  }
  
  private void _initTransactionQuerySoapProxy() {
    try {
      transactionQuerySoap = (new org.tempuri.TransactionQueryLocator()).getTransactionQuerySoap();
      if (transactionQuerySoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)transactionQuerySoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)transactionQuerySoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (transactionQuerySoap != null)
      ((javax.xml.rpc.Stub)transactionQuerySoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public org.tempuri.TransactionQuerySoap getTransactionQuerySoap() {
    if (transactionQuerySoap == null)
      _initTransactionQuerySoapProxy();
    return transactionQuerySoap;
  }
  
  public java.lang.String getTransactionData(java.lang.String product_id, java.lang.String trans_ref) throws java.rmi.RemoteException{
    if (transactionQuerySoap == null)
      _initTransactionQuerySoapProxy();
    return transactionQuerySoap.getTransactionData(product_id, trans_ref);
  }
  
  public java.lang.String getTransactionAcquirerData(java.lang.String product_id, java.lang.String trans_ref) throws java.rmi.RemoteException{
    if (transactionQuerySoap == null)
      _initTransactionQuerySoapProxy();
    return transactionQuerySoap.getTransactionAcquirerData(product_id, trans_ref);
  }
  
  public java.lang.String getTransactionResponse(java.lang.String product_id, java.lang.String trans_ref) throws java.rmi.RemoteException{
    if (transactionQuerySoap == null)
      _initTransactionQuerySoapProxy();
    return transactionQuerySoap.getTransactionResponse(product_id, trans_ref);
  }
  
  
}